module.exports = {
  devServer: {
    proxy: {
      "/cms-api": {
        // 转发目标地址
        target: "http://www.520gongfu.com:8888/api/private/v1/",
        // 允许跨域
        changeOrigin: true,
        pathRewrite: {
          "^/cms-api": "",
          // http://www.zxyi.cn:8888/api/private/v1/login
        },
      },
    },
  },
};
